package com.zhou.juc.test14_ThreadPool;

import java.util.concurrent.Executor;

/**
 * @author zhouyanxiang
 * @create 2020-08-2020/8/17-21:01
 */
public class T01_MyExecutor implements Executor {
    public static void main(String[] args) {
        new T01_MyExecutor().execute(()->System.out.println("hello executor"));
    }

    @Override
    public void execute(Runnable command) {
//		new Thread(command).run();
        command.run();

    }
}
